﻿using System;
using System.Windows.Forms;
using Commen;

namespace WindowsApplication2._6_基本类库.时间
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string strDate1 = this.richTextBox1.Text;
            string strDate2 = this.richTextBox2.Text;

            if (strDate1.Trim() == "") { return; }

            strDate2 = DateHelper.GetShortDateString(strDate1);
            this.richTextBox2.Text = strDate2;
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}